package com.welsy.util
{
	public class XMLUtils
	{
		public function Convert(value:String):String {
			var pattern:RegExp; 
			
			//pattern = /&/g;
			//value = value.replace("&","&amp;");
			pattern = /'/g;
			value = value.replace(pattern,"&apos;");
			pattern = /"/g;
			value = value.replace(pattern,"&quot;");
			pattern = />/g;
			value = value.replace(pattern,"&gt;");
			pattern = /</g;
			value = value.replace(pattern,"&lt;");
			pattern = /€/g;
			value = value.replace(pattern,"Euro");
			/*
			pattern = /©/g;
			value = value.replace(pattern,"C");
			pattern = /®/g;
			value = value.replace(pattern,"R");
			*/			
			
			return value;
		}
	}
}